package homeWork.SOC4.mission_1;

public class Teacher extends Person {

    private String title;
    private int teaAge;
    private String teacherArea;

    public Teacher() {
    }

    public Teacher(String name,int age,String address,String title, int teaAge, String teacherArea) {
        super(name,age,address);
        this.title = title;
        this.teaAge = teaAge;
        this.teacherArea = teacherArea;
    }

    public String toString(){
        return "教师对象tea的信息如下:" + "\n" +
                super.toString() + " " +
                "职称: " + title + " " +
                "教龄: " + teaAge + " " +
                "研究方向: " + teacherArea + " " +
                "家庭住址: "  + address;
    }
}
